package edu.suda.xsap.service;

import edu.suda.xsap.dto.RegisterDto;
import edu.suda.xsap.entity.Register;

import java.util.List;

public interface RegisterService {
    void save(Register register);
    RegisterDto findByName(String name);
    void update(Register register);
    List<RegisterDto> findAll();
    List<RegisterDto> findByPhone(String phone);

    RegisterDto findByNameandPassword(String name, String password);
}
